import Mock from 'mockjs';
export default [
  {
    type: 'GET',
    url: '/host/cloud/home/overview',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data": {
          "regional|10-30": 10,
          "center|1-5": 1,
          "edge|100-200": 100,
          "carTotal|100000-2000000": 100000,
          "roadside|100-500": 100
        }
      })
    }
  },
  {
    type: 'GET',
    url: '/host/cloud/home/junctionInfo',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|5": [
          {
            "area|+1": ['苏州示范区', '上海示范区', '亦庄示范区', '南京示范区', '太和桥示范区'],
            "crossingTotal|1000-3000": 1000,
            "congestionCrossing|10-100": 10,
            "warningNum|20-200": 20
          }
        ]
      })
    }
  },
  {
    type: 'GET',
    url: '/host/cloud/home/vehicleInfo',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data": {
          "carTotal|1000000-9999999": 1000000,
          "intelligentCar|100000-999999": 100000
        }
      })
    }
  },
  {
    type: 'GET',
    url: '/host/cloud/home/trafficAccident',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|15": [
          {
            "area|+1": ['苏州示范区', '上海示范区', '亦庄示范区', '南京示范区', '太和桥示范区'],
            "accidentType|+1": ['闯红灯', '违规变道', '违规占用非机动车道'],
            "value|500-300": 100
          }
        ]
      })
    }
  },
  {
    type: 'GET',
    url: '/host/cloud/home/trafficVolume',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|25": [
          {
            "area|+1": ['苏州示范区', '上海示范区', '亦庄示范区', '南京示范区', '太和桥示范区'],
            "timePoint|+1": ['00:00', '00:00', '00:00', '00:00', '00:00',
              '05:00', '05:00', '05:00', '05:00', '05:00',
              '12:00', '12:00', '12:00', '12:00', '12:00',
              '18:00', '18:00', '18:00', '18:00', '18:00',
              '23:00', '23:00', '23:00', '23:00', '23:00',
            ],
            "value|10-300": 100
          }
        ]
      })
    }
  },
  {
    type: 'GET',
    url: '/host/cloud/home/junctionIndex',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|10": [
          {
            "area|+1": ['苏州示范区', '上海示范区', '亦庄示范区', '南京示范区', '太和桥示范区'],
            "name|2-6": 'x',
            "avaSpeed|20-80": 20,
            "flow|10-100": 10,
            "congestion|1": ['缓行', '畅通', '轻度拥堵', '拥堵']
          }
        ]
      })
    }
  },
  {
    type: 'GET',
    url: '/host/cloud/home/roadIndex',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|10": [
          {
            "area|+1": ['苏州示范区', '上海示范区', '亦庄示范区', '南京示范区', '太和桥示范区'],
            "name|2-6": 'x',
            "avaSpeed|20-80": 20,
            "flow|10-100": 10,
            "congestion|1": ['缓行', '畅通', '轻度拥堵', '拥堵']
          }
        ]
      })
    }
  }
]